package com.kly.dto;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class TOrderDto implements Serializable {

    private static final long serialVersionUID = 1090232220529942240L;


    /**
     *订单号
     */
    private String orderNo;
    /**
     * goooglePay生成的订单号
     */
    private String orderId;
    /**
     *用户号
     */
    private String userCode;
    /**
     *产品号
     */
    private String productCode;
    /**
     *产品类型
     */
    private Integer productType;
    /**
     *应付金额
     */
    private BigDecimal payableAmount;
    /**
     *实付金额
     */
    private BigDecimal paidAmount;
    /**
     *订单类型
     */
    private Integer orderType;
    /**
     *开始时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "MM/dd/yyyy")
    private Date startDate;
    /**
     *结束时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "MM/dd/yyyy")
    private Date endDate;
    /**
     *状态值
     */
    private Integer status;
    /**
     * 当前订单支付token
     */
    private String purchaseToken;
    /**
     * 最近一笔支付成功的订单支付token
     */
    private String latestPaidOrderPurchaseToken;
    /**
     *商品类型: 1-消耗类 2-订阅类
     */
    private Integer purchaseType;

    /**
     *会员权益发放状态：0-未发放 1-已发放
     */
    private Integer benefitsStatus;

    private String startTime;

    private String expiryTime;

    private String paidDate;

    public String getPaidDate() {
        return paidDate;
    }

    public void setPaidDate(String paidDate) {
        this.paidDate = paidDate;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getExpiryTime() {
        return expiryTime;
    }

    public void setExpiryTime(String expiryTime) {
        this.expiryTime = expiryTime;
    }

    public Integer getBenefitsStatus() {
        return benefitsStatus;
    }

    public void setBenefitsStatus(Integer benefitsStatus) {
        this.benefitsStatus = benefitsStatus;
    }

    public String getLatestPaidOrderPurchaseToken() {
        return latestPaidOrderPurchaseToken;
    }

    public void setLatestPaidOrderPurchaseToken(String latestPaidOrderPurchaseToken) {
        this.latestPaidOrderPurchaseToken = latestPaidOrderPurchaseToken;
    }

    public String getPurchaseToken() {
        return purchaseToken;
    }

    public void setPurchaseToken(String purchaseToken) {
        this.purchaseToken = purchaseToken;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public Integer getProductType() {
        return productType;
    }

    public void setProductType(Integer productType) {
        this.productType = productType;
    }

    public BigDecimal getPayableAmount() {
        return payableAmount;
    }

    public void setPayableAmount(BigDecimal payableAmount) {
        this.payableAmount = payableAmount;
    }

    public BigDecimal getPaidAmount() {
        return paidAmount;
    }

    public void setPaidAmount(BigDecimal paidAmount) {
        this.paidAmount = paidAmount;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Integer getPurchaseType() {
        return purchaseType;
    }

    public void setPurchaseType(Integer purchaseType) {
        this.purchaseType = purchaseType;
    }
}
